bufio.Reader.buf (field)
33 uses
bufio (current package)
bufio.go#L33: buf []byte
bufio.go#L50: if ok && len(b.buf) >= size {
bufio.go#L64: func (b *Reader) Size() int { return len(b.buf) }
bufio.go#L78: if b.buf == nil {
bufio.go#L79: b.buf = make([]byte, defaultBufSize)
bufio.go#L81: b.reset(b.buf, r)
bufio.go#L86: buf: buf,
bufio.go#L99: copy(b.buf, b.buf[b.r:b.w])
bufio.go#L104: if b.w >= len(b.buf) {
bufio.go#L110: n, err := b.rd.Read(b.buf[b.w:])
bufio.go#L147: for b.w-b.r < n && b.w-b.r < len(b.buf) && b.err == nil {
bufio.go#L151: if n > len(b.buf) {
bufio.go#L152: return b.buf[b.r:b.w], ErrBufferFull
bufio.go#L165: return b.buf[b.r : b.r+n], err
bufio.go#L224: if len(p) >= len(b.buf) {
bufio.go#L241: n, b.err = b.rd.Read(b.buf)
bufio.go#L254: n = copy(p, b.buf[b.r:b.w])
bufio.go#L256: b.lastByte = int(b.buf[b.r-1])
bufio.go#L271: c := b.buf[b.r]
bufio.go#L293: b.buf[b.r] = byte(b.lastByte)
bufio.go#L303: for b.r+utf8.UTFMax > b.w && !utf8.FullRune(b.buf[b.r:b.w]) && b.err == nil && b.w-b.r < len(b.buf) {
bufio.go#L310: r, size = rune(b.buf[b.r]), 1
bufio.go#L312: r, size = utf8.DecodeRune(b.buf[b.r:b.w])
bufio.go#L315: b.lastByte = int(b.buf[b.r-1])
bufio.go#L351: if i := bytes.IndexByte(b.buf[b.r+s:b.w], delim); i >= 0 {
bufio.go#L353: line = b.buf[b.r : b.r+i+1]
bufio.go#L360: line = b.buf[b.r:b.w]
bufio.go#L367: if b.Buffered() >= len(b.buf) {
bufio.go#L369: line = b.buf
bufio.go#L535: if b.w-b.r < len(b.buf) {
bufio.go#L560: n, err := w.Write(b.buf[b.r:b.w])
 |
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |